using System.Collections.Generic;
using SQLServices.RunnableItems;

namespace SQLServices.RunnableItems
{
    /// <summary>
    /// A runnable item is an object that can be executed against the 
    /// database connection. This is normally a script file but it also
    /// includes folders
    /// </summary>
    public interface IRunnableItemOld
    {
        /// <summary>
        /// Indicates if the script failed when it was executed
        /// </summary>
        RunnableState State { get; }

        /// <summary>
        /// This is the script file name or folder
        /// </summary>
        string Name { get; }

        /// <summary>
        /// The error message if the script failed
        /// </summary>
        string Error { get; }

        /// <summary>
        /// The full path for the runnable item
        /// </summary>
        IPathItemOld Path { get; }

    }
}